<template>
  <div id="basicLayout">
    <a-layout style="min-height: 100vh">
      <a-layout-header class="header">
        <GlobalHeader />
      </a-layout-header>
      <a-layout class="mid">
        <GlobalSider class="sider"/>
        <a-layout-content class="content">
          <router-view />
        </a-layout-content>
      </a-layout>
      <a-layout-footer class="footer">
          <a href="https://beian.miit.gov.cn" target="_blank">
            陇ICP备2024007543号
          </a>
          <a href="https://space.bilibili.com/432460619" target="_blank">
            @王子琦
          </a>
      </a-layout-footer>
    </a-layout>
  </div>
</template>
<script>

import {defineComponent} from "vue";
import GlobalHeader from "@/components/GlobalHeader.vue";
import GlobalSider from "@/components/GlobalSider.vue";

export default defineComponent({
  components: {GlobalSider, GlobalHeader}
})
</script>
<style scoped>

#basicLayout .header {
  position: fixed;
  z-index: 1;
  width: 100%;
  padding-inline: 20px;
  background-color: white;
  margin-bottom: 1px;
  color: unset;
}

#basicLayout .content {
  padding: 24px;
  margin-bottom: 28px;
  background: linear-gradient(to right, #fefefe, #fff);
}

#basicLayout .mid {
  margin-top: 50px;
}

#basicLayout .sider {
  background: #fff;
  padding-top: 20px;
  border-right: 0.5px solid #eee;
}

#basicLayout .footer {
  background-color: #efefef;
  text-align: center;
  align-items: center;
  position: fixed;
  height: 3%;
  bottom: 0;
  left: 0;
  right: 0;
}
</style>
